<template>
  <el-table :data="list" style="width: 100%">
    <el-table-column prop="projectName" label="产品名称" width="180"></el-table-column>
    <el-table-column prop="type" label="类型" width="180"></el-table-column>
    <el-table-column prop="status" label="状态"></el-table-column>
    <el-table-column prop="startTime" label="开始时间"></el-table-column>
    <el-table-column prop="endTime" label="结束时间"></el-table-column>
    <el-table-column prop="creationTime" label="创建时间" width="150"></el-table-column>
  </el-table>
</template>
<script>
import { getOperationList } from "@/api/operation";
export default {
  name: "OperationTable",
  data() {
    return {
      list: [],
      total: 0,
      listQuery:{
        page:1,
        limit:20
      }
    };
  },
  created() {
    this.getOperations()
  },
  methods: {
    getOperations() {
      getOperationList(this.listQuery).then(response => {
        this.list = response.data.items;
        this.total = response.data.total;
      });
    }
  }
};
</script>